#!/usr/bin/env python
# -*- coding: utf-8 -*-
import wx
from core import Core

class Finder(wx.Frame):
    def __init__(self):
        style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN
        wx.Frame.__init__(self,Core().getMainFrame(), 1, "Finder", size=(400,450),style=style)
        self.panel=wx.Panel(self)
        self.panel.SetAutoLayout(True)
        
        l1 = wx.StaticText(self.panel, -1, "Find:")
        self.txt=wx.TextCtrl(self.panel, -1, "", size=(125, -1))
        self.list=wx.ListCtrl(self.panel,-1,)
    
        hbox = wx.BoxSizer(wx.VERTICAL)
        hbox.Add(l1, 0, wx.EXPAND | wx.RIGHT | wx.LEFT | wx.TOP,border=10)
        hbox.Add(self.txt, 0, wx.EXPAND | wx.RIGHT | wx.LEFT,border=10)
        hbox.Add(self.list, 1, wx.EXPAND | wx.ALL,border=10)
        self.panel.SetSizer(hbox)